﻿//using HarmonyLib;
//using RimWorld;
//using RimWorld.Planet;
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
//using UnityEngine;
//using Verse;

//[HarmonyPatch(
//    typeof(SiteMakerHelper),
//    nameof(SiteMakerHelper.FactionCanOwn))]
//public static class SitePartDef_FactionCanOwn_Patch
//{

//    public static bool Prefix(ref bool __result,SitePartDef sitePart, Faction faction, bool disallowNonHostileFactions)
//    {
//        //Pawn pawn = Traverse.Create(__instance).Field("pawn").GetValue<Pawn>();

//        if (sitePart.defName == "DanFurnaceRoom")
//        {
//            if (faction == Faction.OfMechanoids)
//            {
//                __result = true;
//                return false;
//            }
//        }
//        return true;
//    }
//}

